﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class Sys_DeptCollection : List<Sys_Dept>
    { 
         public int IndexOf(Sys_Dept item)
        {
            return base.IndexOf(item);
        }
        public void Insert(int index, Sys_Dept item)
        {
            base.Insert(index, item);
        }
        public new void RemoveAt(int index)
        {
            base.RemoveAt(index);
        }
        public Sys_Dept this[int index]
        {
            get
            {
                return base[index];
            }
            set
            {
                base[index] = value;
            }
        }
        public void Add(Sys_Dept item)
        {
            base.Add(item);
        }
        public new void Clear()
        {
            base.Clear();
        }
        public new bool Contains(Sys_Dept item)
        {
            return base.Contains(item);
        }
        public new void CopyTo(Sys_Dept[] array, int arrayIndex)
        {
            base.CopyTo(array, arrayIndex);
        }
        public new int Count
        {
            get
            {
                return base.Count;
            }
        }
        public bool IsReadOnly
        {
            get
            {
                return IsReadOnly;
            }
        }
        public new void Remove(Sys_Dept item)
        {
            base.Remove(item);
        }
        public new IEnumerator<Sys_Dept> GetEnumerator()
        {
            return base.GetEnumerator();
        } 
    }
    public class Sys_Dept
    {
        private int _IDDept;

        public int IDDept
        {
            get { return _IDDept; }
            set { _IDDept = value; }
        }
        private string _DeptCode;

        public string DeptCode
        {
            get { return _DeptCode; }
            set { _DeptCode = value; }
        }
        private string _DeptName;

        public string DeptName
        {
            get { return _DeptName; }
            set { _DeptName = value; }
        }
        private Boolean _Status;

        public Boolean Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
    }
}
